📚 Operating Systems

Chapter 5 - ICT Grade 10

🎯 Learning Objectives

By completing this chapter, you will learn:

💻 5.1 Introduction to Operating Systems

Computer Components

A computer consists of three main components:

HARDWARE Physical Components Mouse, Keyboard, etc. FIRMWARE Booting Instructions Stored in ROM SOFTWARE Programs & Instructions OS, Applications

🔄 The Booting Process

When you power up a computer, the following sequence occurs:

1️⃣
CPU Activation

CPU activates BIOS

2️⃣
POST

Power On Self-Test checks hardware

3️⃣
MBR Reading

Master Boot Record is read

4️⃣
OS Loading

Operating System loads to RAM

5️⃣
Control Transfer

OS takes control and displays UI

📝 Note: This entire process is called BOOTING - loading the Operating System into RAM (main memory).

📊 Types of Software

SOFTWARE SYSTEM SOFTWARE APPLICATION SOFTWARE Operating System Utility Software Language Translators Assembler Compiler Interpreter Word Processing Spreadsheets Database Web Browsers Computer Games

🖥️ System Software Components

1. Operating System

The Operating System manages hardware and software, allowing users to utilize computer functions effectively.

HARDWARE Mouse Keyboard Monitor Printer Projector SYSTEM SOFTWARE Operating System Utility Software APPLICATION SOFTWARE Word Processing Database Spreadsheets Web Browsers Computer Games HUMAN USER

2. Utility Software

Used to manage and analyze software and protect from security threats.

Examples:
  • Anti-Virus Software: Protects from virus infections
  • Disk Formatting: Prepares storage devices for saving files

3. Language Translators

Translate high-level programming languages into machine language (0s and 1s).

📱 Popular Operating Systems

Operating System Type Description
Microsoft Windows Proprietary Most popular worldwide. Versions: XP, Vista, 7, 8, 10, 11. Includes Windows Server and Windows Mobile.
Apple Mac OS Proprietary Developed by Apple Inc. Only runs on Apple computers.
Ubuntu Free & Open Source Based on Linux. Available at www.ubuntu.com
Android Free & Open Source Developed by Google. Mainly for mobile devices.
Hanthana Linux Free & Open Source Based on Linux. Available at www.hanthana.org

🔧 5.2 Types of Operating Systems

Single User One user at a time Example: MS-DOS Multi-User Multiple users simultaneously Example: Linux, Win Server Multi-Tasking Multiple processes at same time Example: Win 7, Ubuntu Real Time Instant output No delays Example: ATM, Calculators

⚙️ 5.3 Services of an Operating System

The Operating System provides two main services:

  1. Managing the hardware of a computer
  2. Providing user interface

1. Managing the Hardware

i. Process Management

Example: When you print a document, the OS breaks it into small processes:
  • Reading the document from storage
  • Processing the print command
  • Sending data to printer
  • Managing print queue

The OS manages CPU time allocation, memory allocation, and I/O devices for each process.

ii. Memory Management

RAM plays a crucial role in computer operation. Memory management ensures:

🎯 Activity: Find the RAM capacity of your computer:
  1. Right-click on "This PC" or "My Computer"
  2. Select "Properties"
  3. Check "Installed RAM" or "Memory"

iii. Device Management

The OS manages peripheral devices using:

Example: When you connect a new printer, you need to install its device driver to access all features like double-sided printing, color options, etc.

iv. File Management

The OS manages files and folders through:

v. Security Management

The OS protects against security threats:

📝 Note: While the OS provides basic security, additional third-party security software (antivirus, firewall) may be needed for complete protection.

vi. Network Management

The OS supports:

2. Providing User Interface

a) Command Line Interface (CLI)

Early operating systems used CLI where commands are typed using a keyboard.

C:\Users\Student> Command Prompt Type commands here...
Common CLI Commands:
  • dir - List files and folders
  • cd - Change directory
  • mkdir - Create new folder
  • del - Delete files
  • copy - Copy files

b) Graphical User Interface (GUI)

Modern OS use graphics for easier interaction. GUI uses WIMP components:

W Windows Application windows displaying content Document Window I Icons Graphical symbols representing programs M Menus Lists of commands and options P Pointer Mouse cursor for navigation

🛠️ 5.4 Utility Programs

Utility programs help in managing and maintaining the computer system:

Utility Program Function
Backup Software Copy files and backup hard drives
Disk Scanner Check errors in hard drive
Disk Defragmentation Reorganize hard disk for better efficiency
File Compression Compress large files into smaller files
Task Manager Display information about processes and programs
Anti-Virus Identify and eliminate malware
Clipboard Temporary storage for cut/copy operations
Disk Partitioning Divide drive into multiple logical drives
Network Utilities Analyze and configure network connectivity

Important Utility Operations

1. Disk Partitioning

Dividing a physical hard drive into multiple logical partitions.

Before Partitioning HARD DISK After Partitioning C: D: E:

Why partition?

2. Disk Formatting

Preparing a storage device for data storage using a specific file format.

⚠️ Important: Formatting deletes all data on the drive. Always backup important data before formatting!
File System Operating System Description
FAT16, FAT32 Windows (older versions) File Allocation Table systems
NTFS Windows (modern) New Technology File System
ext4 Linux Fourth Extended File System
ReiserFS Linux Journaling file system

3. Disk Defragmentation

Reorganizing fragmented files to improve disk performance.

Before Defragmentation A1 B1 A2 C1 B2 C2 Files scattered across disk After Defragmentation File A File B File C Empty Free Space Files organized together
📝 Note: Linux-based systems rarely need defragmentation because they use smarter file storage methods that prevent fragmentation.

📁 5.5 File Systems and Management

File Structure

Every file has two components:

Example: MyDocument.docx
  • File Name: MyDocument
  • Separator: . (dot/full stop)
  • Extension: docx (Microsoft Word document)
Extension File Type
.exe Executable program
.docx Microsoft Word document
.xlsx Microsoft Excel spreadsheet
.pptx Microsoft PowerPoint presentation
.accdb Microsoft Access database
.jpg/.png Image files
.mp3/.mp4 Audio/Video files
.pdf Portable Document Format

Drives and Folders

Drives

Storage locations in Windows are labeled with letters:

📝 Note: In Linux, all storage devices appear as folders (directories) instead of drive letters (e.g., /media/usb).

Folders (Directories)

Folders organize files into groups for easy management.

🎯 Activity: Creating a Folder
  1. Select the drive where you want to create the folder
  2. Click File → New → Folder (or right-click → New → Folder)
  3. Type a meaningful folder name
  4. Press Enter

File Operations

Operation Method 1 Method 2 Keyboard Shortcut
Copy Right-click → Copy Edit → Copy Ctrl + C
Cut Right-click → Cut Edit → Cut Ctrl + X
Paste Right-click → Paste Edit → Paste Ctrl + V
Delete Right-click → Delete File → Delete Delete key
Rename Right-click → Rename File → Rename F2

Recycle Bin

When you delete files, they go to the Recycle Bin temporarily. You can:

⚠️ Important: Files deleted from external drives (USB) or using Shift+Delete bypass the Recycle Bin and are deleted permanently!

📌 Chapter Summary

  • Operating System is essential for operating a computer
  • All application software runs on the Operating System
  • OS provides user interface (CLI and GUI) for interaction
  • GUI is more user-friendly than CLI
  • Types of OS: Single User, Multi-User, Multi-Tasking, Real-Time
  • OS manages six key resources: Process, Memory, Device, File, Security, Network
  • Hard disk must be partitioned and formatted before installing OS
  • Files consist of File Name and Extension
  • Folders organize files within drives
  • Defragmentation improves disk performance (mainly in Windows)
  • Utility programs help maintain and protect the system

📝 Practice Questions & Answers

Click on any question to reveal the answer!

1. What is an Operating System?
An Operating System is system software that manages computer hardware and software resources and provides services to application programs. It acts as an intermediary between the user and the computer hardware, enabling users to interact with the computer without needing to know complex technical details.
2. Explain the booting process of a computer.
The booting process consists of 5 steps:
  1. CPU activates the BIOS (Basic Input Output System)
  2. POST (Power On Self-Test) checks all hardware using CMOS memory
  3. MBR (Master Boot Record) is read from the boot drive
  4. Operating System is loaded into RAM
  5. OS takes control and displays the user interface
This process is called "booting" - loading the OS into main memory (RAM).
3. What are the two main types of software? Give examples.
1. System Software:
  • Operating Systems (Windows, Linux, Mac OS)
  • Utility Software (Anti-virus, Disk formatter)
  • Language Translators (Assembler, Compiler, Interpreter)
2. Application Software:
  • Word Processing (MS Word)
  • Spreadsheets (MS Excel)
  • Database (MS Access)
  • Web Browsers (Chrome, Firefox)
  • Computer Games
4. Name four types of Operating Systems and give examples.
1. Single User OS: Allows one user at a time (Example: MS-DOS)
2. Multi-User OS: Allows multiple users simultaneously (Example: Linux, Windows Server)
3. Multi-Tasking OS: Runs multiple processes at the same time (Example: Windows 7, Windows 8, Ubuntu, Mac OS)
4. Real-Time OS: Provides instant output without delays (Example: ATM machines, Calculators)
5. What is Process Management? Give an example.
Process Management is the OS function that manages the execution of programs and tasks. A process is a running program or part of a program.

Example: When printing a document:
  • The OS divides printing into small processes
  • Allocates CPU time to each process
  • Manages memory for the print job
  • Controls the printer device
  • Prioritizes tasks (e.g., typing while printing)
The OS ensures these processes run efficiently and in the correct order.
6. Explain Memory Management and its importance.
Memory Management is the process of managing RAM (Random Access Memory) efficiently.

Importance:
  • Ensures sufficient memory allocation for each process
  • Frees memory when a process ends
  • Prevents memory wastage
  • Uses both Primary (RAM) and Secondary memory efficiently
Example: When you give a print command, data is sent to RAM. Only that data in RAM gets printed. Changes made after the print command don't appear in the printout because they're not in the RAM allocated for that print job.
7. What is a Device Driver? Why is it needed?
A Device Driver is software that enables the Operating System to communicate with hardware devices.

Why needed:
  • Translates OS commands into device-specific instructions
  • Enables full functionality of the device
  • Allows the OS to control the hardware properly
Example: When you connect a new printer, you need to install its driver to access features like double-sided printing, color options, and quality settings. Without the driver, basic printing might work, but advanced features won't be available.
8. What is the difference between CLI and GUI?
CLI (Command Line Interface) GUI (Graphical User Interface)
Text-based interface Graphics-based interface
Uses keyboard for commands Uses mouse/touch for navigation
Requires knowledge of commands User-friendly with visual elements
Faster for experienced users Easier for beginners
Example: Command Prompt (CMD) Example: Windows Desktop
Uses text commands only Uses WIMP (Windows, Icons, Menus, Pointer)
9. What is WIMP? Explain each component.
WIMP stands for the four main components of a Graphical User Interface:

W - Windows: Rectangular areas displaying application content (e.g., document windows, browser windows)

I - Icons: Small graphical symbols representing programs, files, or folders (e.g., Recycle Bin icon, folder icons)

M - Menus: Lists of commands and options organized by category (e.g., File menu, Edit menu, View menu)

P - Pointer: The mouse cursor used to navigate and select items on screen (changes shape based on context - arrow, hand, I-beam, etc.)
10. Name five utility programs and their functions.
1. Backup Software: Creates copies of files and backs up hard drives to prevent data loss

2. Disk Scanner: Checks hard drives for errors and bad sectors

3. Disk Defragmentation: Reorganizes fragmented files to improve disk performance

4. Anti-Virus Software: Protects computer by identifying and eliminating malicious software (malware)

5. Task Manager: Displays information about running processes, programs, and system performance
11. What is Disk Partitioning? Why is it done?
Disk Partitioning is the process of dividing a single physical hard drive into multiple logical drives (partitions).

Reasons for partitioning:
  • Organization: Save different types of files in different places (e.g., software in C:, data in D:)
  • Multiple OS: Install more than one Operating System (e.g., Windows and Ubuntu)
  • OS Requirements: Some operating systems require separate partitions
  • Better Management: Easier backup and data management
Note: In Windows, partitions are named as C:, D:, E:, etc. In Linux, they appear as directories/folders.
12. What is Disk Formatting? What precaution should be taken?
Disk Formatting is the process of preparing a storage device (hard disk, USB flash drive, etc.) for storing data using a specific file system.

Purpose:
  • Creates a file system structure
  • Makes the drive ready for data storage
  • Removes all existing data
⚠️ IMPORTANT PRECAUTION:
Formatting deletes all data on the drive permanently. Always create a backup copy of important data before formatting!

Common File Systems: FAT16, FAT32, NTFS (Windows), ext4, ReiserFS (Linux)
13. Explain Disk Defragmentation. Which OS needs it more?
Disk Defragmentation is the process of reorganizing fragmented data on a disk so files are stored in contiguous (continuous) locations.

What is Fragmentation?
When a large file is broken into pieces and stored in different locations on the disk. This happens when:
  • Files are edited multiple times and grow in size
  • Empty spaces from deleted files are reused
  • Disk becomes full and files must be split
Problems caused:
  • Slower file reading/writing
  • Reduced system performance
  • Longer loading times
Which OS needs it?
Windows needs regular defragmentation. Linux rarely needs it because it uses intelligent file storage methods that prevent fragmentation automatically by leaving adequate space between files and relocating files when needed.
14. What are the two components of a file name? Give examples.
Every file has two components separated by a dot (.)

1. File Name: The name given to identify the file
2. File Extension: Indicates the file type/format

Examples:
Complete File Name File Name Extension File Type
Report.docx Report .docx Word Document
Budget.xlsx Budget .xlsx Excel Spreadsheet
Photo.jpg Photo .jpg Image File
Program.exe Program .exe Executable Program

Note: The OS identifies file types using extensions. Extensions are often hidden by default but can be made visible in folder settings.
15. Explain the difference between Copy-Paste and Cut-Paste.
Copy-Paste:
  • Creates a duplicate of the file/folder
  • Original file remains in the source location
  • A copy appears in the destination location
  • Result: File exists in BOTH locations
  • Shortcut: Ctrl+C (copy), Ctrl+V (paste)
Cut-Paste:
  • Moves the file/folder
  • Original file is removed from source location
  • File appears in the destination location
  • Result: File exists in destination location ONLY
  • Shortcut: Ctrl+X (cut), Ctrl+V (paste)
Example: If you copy a photo from C: to D:, the photo exists in both drives. If you cut and paste, it moves from C: to D: (only in D:).
16. What is the Recycle Bin? How does it work?
The Recycle Bin is a special folder that temporarily stores deleted files and folders before permanent deletion.

How it works:
  1. When you delete a file, it moves to the Recycle Bin
  2. The file is not permanently deleted yet
  3. You can restore the file to its original location
  4. Emptying the Recycle Bin permanently deletes all files
To Restore a file:
  • Open Recycle Bin
  • Select the file to restore
  • Click File → Restore or right-click → Restore
  • File returns to its original location
⚠️ Important Notes:
  • Files deleted from external drives (USB) bypass the Recycle Bin
  • Files deleted using Shift+Delete are permanently deleted
  • Once Recycle Bin is emptied, files cannot be easily recovered
17. What are the six resource management functions of an OS?
The Operating System manages six key resources:

1. Process Management: Manages running programs and tasks, allocates CPU time

2. Memory Management: Manages RAM allocation and ensures efficient memory use

3. Device Management: Controls peripheral devices using device drivers and controllers

4. File Management: Organizes and manages files and folders on storage devices

5. Security Management: Protects against threats, manages user authentication and access control

6. Network Management: Manages network connections, enables resource sharing and remote access
18. Name three proprietary and two open-source operating systems.
Proprietary Operating Systems (Paid/Licensed):
  1. Microsoft Windows - Most popular worldwide (Windows 7, 8, 10, 11)
  2. Apple Mac OS (macOS) - Only runs on Apple computers
  3. Microsoft Windows Server - For server environments
Open Source Operating Systems (Free):
  1. Ubuntu - Based on Linux, available at www.ubuntu.com
  2. Android - Developed by Google for mobile devices
  3. Hanthana Linux - Linux-based, available at www.hanthana.org
Key Difference: Proprietary OS require payment for licenses, while open-source OS are free to use, modify, and distribute.
19. What is the difference between hardware, firmware, and software?
Hardware:
  • Physical components of a computer with definite shape
  • Can be touched and seen
  • Examples: Mouse, keyboard, monitor, hard disk, printer, CPU
Firmware:
  • Permanent software stored in ROM (Read Only Memory)
  • Contains booting instructions
  • Provides basic instructions when computer starts
  • Examples: BIOS, Bootstrap loader
Software:
  • Set of instructions/programs that tell the computer what to do
  • Cannot be touched (intangible)
  • Stored on storage devices and loaded into RAM
  • Examples: Operating Systems, Word processors, Games, Web browsers
20. Why is an Operating System considered essential for a computer?
An Operating System is essential because it:

1. Acts as an Interface:
  • Provides user-friendly interface between user and hardware
  • Makes computers accessible to non-technical users
2. Manages Resources:
  • Controls all hardware components (CPU, memory, devices)
  • Allocates resources efficiently among programs
3. Enables Application Software:
  • All application programs run on the OS
  • Provides platform for software installation and execution
4. Provides Essential Services:
  • File management and organization
  • Security and access control
  • Network connectivity
5. Simplifies Complex Operations:
  • Users don't need to write complex machine code
  • Handles technical details automatically
Conclusion: Without an OS, a computer would be just hardware without any means for users to operate it effectively. The OS is the "soul" that brings life to the computer hardware.
🎓 Additional Practice Activities:
  1. Check your computer's specifications (RAM, processor, OS version)
  2. Practice creating folders and organizing files
  3. Learn 10 keyboard shortcuts for file operations
  4. Open Task Manager and observe running processes
  5. Find and view file properties of different file types
  6. Practice switching between different windows using Alt+Tab
  7. Explore the Control Panel settings
  8. Check the capacity and free space of your drives

✅ Study Tips for Success

  • Understand concepts, don't just memorize
  • Practice file operations regularly on your computer
  • Draw diagrams to remember hierarchical structures
  • Relate examples to your daily computer usage
  • Create comparison tables for similar concepts (CLI vs GUI, Copy vs Cut)
  • Test yourself using the Q&A section regularly
  • Discuss concepts with classmates
  • Watch videos about OS operations for better understanding